package practice08;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice08
 * @ClassName: Visitor
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/1 17:10
 * @Copyright 大牛版板所有
 */
public class Visitor {
    String name;
    int age;
    public double buy(){
        if (this.age>=18 && this.age<=60){
            return 20;
        }
        else {
            return 0;
        }
    }
}
